<template>
  <div>
    parent
    <childhooks mytitle="首页"></childhooks>
  </div>
</template>

<script>

import childhooks from './components/ChildHooks'
// import { reactive, toRefs } from 'vue'

export default {
  components: {
    childhooks
  },
  setup () {
    // const state = reactive({
    //   myname: 'lisa',
    //   myage: 100
    // })

    // const handleChange = () => {
    //   state.myname = 'json'
    //   state.myage = 18
    // }

    // return {
    //   ...toRefs(state),
    //   handleChange
    // }
  }
}
</script>
